<div class="grid_container">
	<div class="grid_12">
		<div class="widget_wrap">
			<div class="widget_top">
				<span class="h_icon clipboard"></span>
				<h6>Listado de Categoriás</h6>
			</div>
			<div class="form_container">
				<ul>
					<li>
						<div class="form_grid_12">
							<div class="form_input">
							<form method="post" action="">
								<div class="form_grid_4 alpha">
									<input name="id" type="text" value="<?php echo $id; ?>">
									<span class="label_intro">Código</span>
								</div>
								<div class="form_grid_6 ">
									<input name="description" type="text" value="<?php echo $description ?>">
									<span class="label_intro">Nombre de Categoría</span>
								</div>
								<div class="form_grid_2 ">
								<input type="submit" class="btn_small btn_blue" value="Buscar">
								</div>
								<span class="clear"></span>
							</form>
							</div>
						</div>
					</li>
				</ul>
			</div>
			<div class="widget_content">
				<table class="wtbl_list">
					<thead>
						<tr>
							<th>Código</th>
							<th>Descripción</th>
							<th>Opciones</th>
						</tr>
					</thead>
					<tbody>
					<?php $i = 0; ?>
					<?php foreach ($groups as $g) : ?>
					    <?php $i++; ?>
						<tr class="<?=($i%2==0) ? "tr_even" : "tr_odd" ?>">
							<td><?=$g->id; ?></td>
							<td><?=$g->description; ?></td>
							<td align="center">
							    <a class="action-icons c-edit" href="<?php echo base_url(); ?>index.php/category_products/edit/<?php echo $g->id; ?>" original-title="Editar">Editar</a>
							    <a class="action-icons c-Delete" href="javascript:confirmar_borrar('<?php echo base_url(); ?>index.php/category_products/delete/<?php echo $g->id; ?>')" original-title="Borrar">Borrar</a>
							</td>
						</tr>
					<?php endforeach; ?>
					</tbody>
				</table>
			</div>
		</div>
	</div>
	<span class="clear"></span>
</div>